class CommonModel {
  String? icon;
  String? title;
  String? url;
  String? statusBarColor;
  bool? hideAppBar;

  CommonModel({this.icon,this.title,this.url,this.statusBarColor,this.hideAppBar});
  factory CommonModel.fromJson(Map<String,dynamic> map){
    return CommonModel(
      icon: map['icon'],
      title: map['title'],
      url: map['url'],
      statusBarColor: map['statusBarColor'],
      hideAppBar: map['hideAppBar']
    );
  }
  factory CommonModel.empty(){
    return CommonModel(icon: '', title: '', url: '', statusBarColor: '', hideAppBar: false,);
  }

  Map<String,dynamic> toJson(){
    Map<String,dynamic> ret = {};
    ret['icon'] = icon ?? '';
    ret['title'] = title ?? '';
    ret['url'] = url ?? '';
    ret['statusBarColor'] = statusBarColor ?? '';
    ret['hideAppBar'] = hideAppBar;
    return ret;
  }

  @override
  String toString() {
    return 'icon:$icon,title:$title,url:$url,statusBarColor:$statusBarColor,hideAppBar:$hideAppBar';
  }
}